//
//  ReferenceUtils.m
//  HandWenZhou
//
//  Created by carlos on 12-12-8.
//  Copyright (c) 2012年 carlos. All rights reserved.
//

#import "ReferenceUtils.h"
#import "PhoneUtils.h"
#define fristName(mName) [NSString stringWithFormat:@"%@%@",mName,[COAppTool appVersionName]]

@implementation ReferenceUtils
//是否是第一次使用
+(BOOL)isFrist:(NSString *)mName
{
    NSString *key = fristName(mName);
    BOOL result = ![[NSUserDefaults standardUserDefaults] boolForKey:key];
    return result;
}
//第一次完成
+(void)fristFinished:(NSString *)mName
{
    [[NSUserDefaults standardUserDefaults] setBool:YES forKey:fristName(mName)];
    [[NSUserDefaults standardUserDefaults] synchronize];
}

@end
